﻿@model IEnumerable<TravelWD.Models.TourModel>

@{
    ViewBag.Title = "My Tours";
}

<h2>Tours</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.TourID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Title)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PlaceName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Country)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Description)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TravelIncluded)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AccomodationIncluded)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TravelBy)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DepartureFrom)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AccomodationDetails)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Itinerary)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DestinationDetails)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Currency)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PricePerPerson)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Discount)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CancelPolicy)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CancelFee)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TourPolicy)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Mindays)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreatedDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UserID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TourAgentName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TourRating)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AgentRating)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.TourID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PlaceName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Country)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TravelIncluded)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AccomodationIncluded)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TravelBy)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DepartureFrom)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AccomodationDetails)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Itinerary)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DestinationDetails)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Currency)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PricePerPerson)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Discount)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CancelPolicy)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CancelFee)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TourPolicy)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Mindays)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreatedDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TourAgentName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TourRating)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AgentRating)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
